package com.cm.caseManagement.pojo.entity;

import com.cm.caseManagement.annotation.Excel;
import com.cm.caseManagement.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 案件收支对象 cm_case_income
 *
 * @author ruoyi
 * @date 2025-10-05
 */
public class CmCaseIncome extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 外部唯一id */
    @Excel(name = "外部唯一id")
    private String publicId;

    /** 科目：0基础律师费、1风险律师费、2缴纳保证金、3结算保证金 */
    @Excel(name = "科目：0基础律师费、1风险律师费、2缴纳保证金、3结算保证金")
    private Long subject;

    /** 案件数量 */
    @Excel(name = "案件数量")
    private Long caseNum;

    /** 支付凭证 */
    @Excel(name = "支付凭证")
    private String payVoucher;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPublicId(String publicId)
    {
        this.publicId = publicId;
    }

    public String getPublicId()
    {
        return publicId;
    }

    public void setSubject(Long subject)
    {
        this.subject = subject;
    }

    public Long getSubject()
    {
        return subject;
    }

    public void setCaseNum(Long caseNum)
    {
        this.caseNum = caseNum;
    }

    public Long getCaseNum()
    {
        return caseNum;
    }

    public void setPayVoucher(String payVoucher)
    {
        this.payVoucher = payVoucher;
    }

    public String getPayVoucher()
    {
        return payVoucher;
    }

    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("publicId", getPublicId())
            .append("subject", getSubject())
            .append("caseNum", getCaseNum())
            .append("payVoucher", getPayVoucher())
            .append("amount", getAmount())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
